package com.data.core.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.common.vo.RankingListVo;
import com.data.core.entry.RankingList;


/**
* @version: V1.0
* @author: szw
* @className: RankingListService
* @packageName: RankingListService
* @description: 排行榜接口
* @data: 2021-1-23
**/ 
public interface RankingListService extends IService<RankingList> {

    /**
     * 新增排行榜数据
     * @param rankingListVo
     * @return int
     */
    int save(RankingListVo rankingListVo)throws Exception;


    /**
     * 更新排行榜数据
     * @param rankingListVo
     * @return int
     */
    int update(RankingListVo rankingListVo)throws Exception;


    /**
     * 查询用户排行数据
     * @param userId
     * @return
     */
    RankingListVo findRankingListByUserId(Long userId);

    /**
     * 分页查询排行列表
     * @param page
     * @param rankingListVo
     * @return
     * @throws Exception
     */
    IPage<RankingList> rankingListPage(Page<RankingList> page, RankingListVo rankingListVo)throws Exception;
}
